﻿@model DAEProde.Domain.Match

@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Detalles del Partido</h2>

<fieldset>
    <legend>Datos</legend>

    <div class="display-label">@Html.LabelFor(m => m.Name)</div>
    <div class="display-field">@Html.DisplayFor(m => m.Name)</div>

    <div class="display-label">@Html.LabelFor(m => m.Date)</div>
    <div class="display-field">@Html.DisplayFor(m => m.Date)</div>

    <div class="display-label">@Html.LabelFor(m => m.MatchDate)</div>
    <div class="display-field">@Html.DisplayFor(m => m.MatchDate.Name)</div>
    
    <div class="display-label">@Html.LabelFor(m => m.LocalTeam)</div>
    <div class="display-field">@Html.DisplayFor(m => m.LocalTeam.Name)</div>

    <div class="display-label">@Html.LabelFor(m => m.OutTeam)</div>
    <div class="display-field">@Html.DisplayFor(m => m.OutTeam.Name)</div>    

</fieldset>

<p>
    @Html.ActionLink("Editar", "Edit", new { id = Model.Id }) |
    @Html.ActionLink("Volver", "Index", new { id = Model.MatchDate.Id })
</p>
